<?php /* Smarty version 2.6.16, created on 2012-07-20 10:29:11
         compiled from my_video_review.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'my_video_review.tpl', 39, false),)), $this); ?>
<div id="paging">  
	<div class="content">
   		
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'user_tabs.tpl', 'smarty_include_vars' => array('active_tab' => 'reviews')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
				
        <div class="clear"></div>
        <div class="tabular-content">
            <div class="tab_sub">
            	<ul>
                	<?php if ($this->_tpl_vars['is_coach'] == '1' || $this->_tpl_vars['is_partner'] == '1'): ?><li><a href="my_review.php" class="active">My Reviews</a></li><?php endif; ?>
					<li><a href="javascript:;" >My Video Reviews</a></li>
					<li><a href="coach_review.php" class="active">Reviews to User</a></li>
					<li><a href="video_review.php" class="active">Reviews to video</a></li>
                    <!--li><a href="my_video_review.php">My Videos</a></li-->
					<!--li><a href="#">Coach Reviews by me</a></li-->
					<!--li><a href="#">Video Reviews by me</a></li-->
                </ul>
            </div>
			
			<div class="clear"></div>  
			 <?php if ($this->_tpl_vars['Numvideo'] > 0): ?>
			  <div>
			      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabular_row">
				<?php unset($this->_sections['vdorevrow']);
$this->_sections['vdorevrow']['name'] = 'vdorevrow';
$this->_sections['vdorevrow']['loop'] = is_array($_loop=$this->_tpl_vars['videoReviewArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['vdorevrow']['show'] = true;
$this->_sections['vdorevrow']['max'] = $this->_sections['vdorevrow']['loop'];
$this->_sections['vdorevrow']['step'] = 1;
$this->_sections['vdorevrow']['start'] = $this->_sections['vdorevrow']['step'] > 0 ? 0 : $this->_sections['vdorevrow']['loop']-1;
if ($this->_sections['vdorevrow']['show']) {
    $this->_sections['vdorevrow']['total'] = $this->_sections['vdorevrow']['loop'];
    if ($this->_sections['vdorevrow']['total'] == 0)
        $this->_sections['vdorevrow']['show'] = false;
} else
    $this->_sections['vdorevrow']['total'] = 0;
if ($this->_sections['vdorevrow']['show']):

            for ($this->_sections['vdorevrow']['index'] = $this->_sections['vdorevrow']['start'], $this->_sections['vdorevrow']['iteration'] = 1;
                 $this->_sections['vdorevrow']['iteration'] <= $this->_sections['vdorevrow']['total'];
                 $this->_sections['vdorevrow']['index'] += $this->_sections['vdorevrow']['step'], $this->_sections['vdorevrow']['iteration']++):
$this->_sections['vdorevrow']['rownum'] = $this->_sections['vdorevrow']['iteration'];
$this->_sections['vdorevrow']['index_prev'] = $this->_sections['vdorevrow']['index'] - $this->_sections['vdorevrow']['step'];
$this->_sections['vdorevrow']['index_next'] = $this->_sections['vdorevrow']['index'] + $this->_sections['vdorevrow']['step'];
$this->_sections['vdorevrow']['first']      = ($this->_sections['vdorevrow']['iteration'] == 1);
$this->_sections['vdorevrow']['last']       = ($this->_sections['vdorevrow']['iteration'] == $this->_sections['vdorevrow']['total']);
?>
                  <tr <?php if ($this->_sections['vdorevrow']['index']%2 != 0): ?>class="alter"<?php endif; ?>>
                    <td width="50" valign="top">
					<?php if ($this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['photo'] != ''): ?>
					<img src="uploaded/user_images/thumbs/<?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['photo']; ?>
" border="0" />
					<?php else: ?>
					<img src="images/avatar_smallest.jpg" border="0" />
					<?php endif; ?></td>
                    <td width="155" valign="top"><strong><a href="<?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['link']; ?>
"><?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['name']; ?>
</a></strong><br />
					<i><?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['user_type']; ?>
</i>
					</td>
					<td width="120" valign="top"><a href="videodetails.php?video_id=<?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['video_id']; ?>
"><?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['video_title']; ?>
</a></td>
                    <td width="100" valign="top" style="padding-right:10px;"><strong><?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['review_date']; ?>
</strong></td>
                    <td valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['review_comment'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</td>
                     <td width="20"><!--a href="#"><img src="images/close_small.gif" alt="" border="0" /></a--></td>
                  </tr>
                 <?php endfor; endif; ?>                          
                </table>
				</div>
        	<div class="clear"></div>
            <br />
            <div class="tab_sub">
            	&nbsp;
            </div>
            <div class="tab_search">
            	&nbsp;
            </div>
            <div class="tab_pagination">
            	<?php if ($this->_tpl_vars['pagination_arr'][1]): ?>
				 <div class="clear"></div>
				  <div class="pagin">
					 <ul>
					   <?php echo $this->_tpl_vars['pagination_arr'][1]; ?>

					 </ul>
				  </div>
				 <?php endif; ?>
            </div>   
            <div class="clear"></div> 
			<?php else: ?>
				<div align="left" style="padding:10px;">No record found</div>
			<?php endif; ?>
      </div>
   </div>
</div>